home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000414_news@newsmaster….columbia.edu _Fri Sep 26 15:40:53 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  10KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA13581
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 26 Sep 1997 15:40:52 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA16507
  7.     for kermit.misc@watsun; Fri, 26 Sep 1997 15:40:51 -0400 (EDT)
  8. Path: news.columbia.edu!panix!news.eecs.umich.edu!nntprelay.mathworks.com!logbridge.uoregon.edu!news.bc.net!rover.ucs.ualberta.ca!alberta!not-for-mail
  9. From: Vladimir Alexiev <vladimir@cs.ualberta.ca>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Kermit via PPP under DOS?
  12. Date: 26 Sep 1997 13:28:49 -0600
  13. Organization: University of Alberta, Computing Science
  14. Lines: 167
  15. Message-ID: <omraab98ni.fsf@tees.cs.ualberta.ca>
  16. References: <60dt7d$dj2@f1n1.spenet.wfu.edu>
  17.     <om202d9uht.fsf@tees.cs.ualberta.ca>
  18.     <60ea00$3io$1@apakabar.cc.columbia.edu>
  19. NNTP-Posting-Host: tees.cs.ualberta.ca
  20. In-reply-to: matthews@wfu.edu's message of 25 Sep 1997 14:41:49 GMT
  21. X-Newsreader: Gnus v5.0.15
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7739
  23.  
  24. In article <60ea00$3io$1@apakabar.cc.columbia.edu> fdc@watsun.cc.columbia.edu
  25. (Frank da Cruz) writes: 
  26.  
  27. > : Frank, I'd recommend dosppp05.zip (EPPPD) instead. If you like, I can
  28. > : write up something about the setup that worked for me.
  29. > Yes, please, and post it here.  Thanks.
  30.  
  31. I use EPPPD, which provides a class 1 (Ethernet emulation) driver. It works ok
  32. with a talk app which (claim to) be based on the WATTCP stack. Also, it works
  33. ok with NUPop 1.03, a POP mail (and telnet) program, but I don't know what
  34. TCP/IP stack it uses. Strangely, the ping from WATTCP didn't work
  35. satisfactory. Another ping (from Trumpet?) works ok. 
  36.  
  37. Unfortunately, kermit doesn't work with EPPPD. I guess I should have said in
  38. my initial message "setup that worked for me with other tcp apps" (wattcp and
  39. otherwise). It does BOOTP ok, but then it gives an "Unable to ARP resolve <ip
  40. address>" error, then "Unable to contact the host. Host may be down or gateway
  41. may be needed", and sets \v(tcpip_status) to 8 (host unreachable). (3.15 gives
  42. much worse diagnostics. But these 123R 325T counters are nice. What do they
  43. show, receive/transmit speed?)
  44.  
  45. Another file in the same dosppp05.zip, PPPD, provides class 6 (serial line)
  46. driver. I now see in "APPENDIX II: MS-DOS KERMIT AND PPP" that you advise
  47. using "/k 6" (class 6) with Merit PPP. (However, in my Merit PPP documentation
  48. it says they support class 1 and class 15 only !?) I tried PPPD, and sure
  49. enough it worked perfectly. Only that I had to type all the TCP params by
  50. hand, because unlike EPPPD, PPPD doesn't provide BOOTP (is it even possible
  51. with class 6?).
  52.  
  53. I wonder what is it in kermit that makes it fail where other TCP apps work ok
  54. with EPPPD. (Admittedly, the Ether addresses that EPPPD synthesizes are pretty
  55. weird-looking. Also, it figures out a netmask 255.255.0.0 for a local IP that
  56. differs only in the last octet from the remote (gateway) IP, but that's on a
  57. class B net, so it's perhaps ok.) I read Joe's explanations about ARP routing
  58. in the archives of this group on DejaNews, but there's not enough technical
  59. info to figure it out. I had a problem initially with EPPPD that was also
  60. related to ARP, but it went away once I asked the remote pppd to do
  61. *proxyarp*.
  62.  
  63. Is the advantage of having BOOTP sufficient incentive for the kermit team to
  64. make kermit's stack work with class 1 emulation drivers? I don't know. In the
  65. meanwhile, below is a first attempt at scripts to automate the process.
  66. Please clean it up (especially error checking), my kermit scripting leaves a
  67. lot to be desired.
  68.  
  69.  
  70. USING KERMIT WITH PPPD.EXE FROM DOSPPP05.ZIP
  71.  
  72. In addition to Merit PPP (PPP.EXE that is distributed with Kermit), there's
  73. another free PPP driver for DOS that you may want to consider. It is PPPD.EXE
  74. in the archive MSDOS/PKTDRVR/DOSPPP05.ZIP on any SimTel mirror. It takes only
  75. 57k in memory (as opposed to 95k taken by Merit PPP), and is more robust.
  76. However, it doesn't support Van Jacobsen header compression, so it adds more
  77. overhead to the PPP protocol. [how much more?]
  78.  
  79. To set up PPPD.EXE, follow these steps. The text below may be of interest to
  80. PPP.EXE users as well, since it describes how to automate the process of
  81. connecting, and can be adapted for PPP.EXE.
  82.  
  83. 1. Get DOSPPP05.ZIP. Unzip it in some directory, say \PPP. Read the fine
  84.    documentation that comes with it.
  85.  
  86. 2. DOSPPP05.ZIP contains a simple dialer, CHAT.EXE, that works well with PPPD.
  87.    (If you prefer, you can use Kermit as a more sophisticated dialer with
  88.    better possibility for error checking, but it will start a bit slower.)
  89.    Create a script CHAT.SCR that consists of simple expect-send pairs, plus
  90.    some more info. I don't know if CHAT accepts comment lines, so remove the
  91.    comments below.
  92.  
  93.      ABORT BUSY ABORT ERROR          ; any of these will fail the script
  94.      ABORT "NO ANSWER" 
  95.      ABORT "NO CARRIER" 
  96.      ABORT "NO DIALTONE" 
  97.  
  98.      TIMEOUT 3
  99.      ''        atz                   ; expect nothing, then reset modem
  100.      OK        "atdt <phone>"        ; expect OK from modem, dial the number
  101.      TIMEOUT 60                      ; give it time to connect
  102.  
  103.      ; Insert your ISP's login sequence here. PPPD supports PAP, but not CHAP.
  104.      ; If your ISP supports/requires PAP, put the username and password in
  105.      ; PPPD.CFG (see below), and there will be no dialog here.
  106.  
  107.      ; E.g. a typical unix login goes like this:
  108.      login:    <username>            ;
  109.      TIMEOUT 3                       ; now prompts should come quickly 
  110.      Password: <password>
  111.  
  112.      ; A Cisco terminal server might go like this:
  113.      termserv> login
  114.      TIMEOUT 3                       ; now prompts should come quickly 
  115.      Username: <username>
  116.      Password: <passowrd>
  117.  
  118.      ; Now start a ppp server.
  119.  
  120.      ; If you have root access on Unix, install pppd, then go
  121.      TIMEOUT 60                      ; wait for command-line prompt
  122.      $         "pppd :<myip> proxyarp"
  123.      ; Note the quotes on the line above. <myip> is the IP address of your PC
  124.      ; (Unix pppd can't assign it dynamically by itself). Proxyarp is very
  125.      ; important: it makes the remote pppd route packets to PPPD.EXE.
  126.  
  127.      ; On Cisco terminal server, the command could be
  128.      termserv> "ppp default"
  129.  
  130. 3. Create a configuration file PPPD.CFG:
  131.      com1                       # COM port
  132.      38400                      # UART (serial) DTE speed
  133.      modem                      # sense UART (modem) signals
  134.      #debug                     # only with the debugging version, PPPDD.EXE
  135.      #kdebug 1                  #  a good idea to turn on initially
  136.      pktvec 0x60                # packet driver interrupt vector
  137.      asyncmap 0                 # send control chars as is
  138.      # asyncmap    0xA0000      # for xon/xoff flow control
  139.      # asyncmap 0x20000000      # for connection through telnet
  140.      # escape 0xFF              # for connection through rlogin
  141.      #passive                   # don't quit if no ppp on the other side
  142.      crtscts                    # RTS/CTS (hardware) flow control
  143.      mru 1500                   # max receive unit
  144.      mtu 1500                   # max send unit
  145.      #namsrv <primary name serv>
  146.      #namsrv <secondary name serv>
  147.      user <username>            # for PAP
  148.      passwd <password>          # for PAP
  149.  
  150.    Very important: PPPD will fail if there is a ^Z at the end of this file.
  151.    Use an editor that doesn't do this. Alternatively, you may try to end the
  152.    file by putting a comment character and no newline after it, i.e. like so:
  153.      # Don't put newline here! ^Z
  154.  
  155. 4. Create a DOS batch file to start PPPD, call it PPP.BAT:
  156.      PPPD CONNECT "CHAT -f CHAT.SCR"
  157.      IF ERRORLEVEL 1 GOTO EXIT
  158.      CALL IP-UP.BAT
  159.      REM KERMIT -f PPPD.SCR  ; uncomment after step 3
  160.      :EXIT
  161.    Upon successful connection PPPD creates a file IP-UP.BAT that lists the
  162.    parameters of the connection. We call it, so that the parameters are put in
  163.    the DOS environment. Use SET to check that all four of them are there (if
  164.    not, you may have insufficient environment space.)
  165.  
  166.    If there's problems with the connection, enable the debug and kdebug
  167.    options in PPPD.CFG (see above) and use this instead:
  168.      PPPDD CONNECT "CHAT -f CHAT.SCR" > PPPD.LOG
  169.    then look in PPPD.LOG for clues.
  170.  
  171. 5. Now write a Kermit script PPPD.SCR that transfers the parameters from the
  172.    environment into Kermit, adds some more parameters, and then connects to
  173.    the telnet host.
  174.      SET TCP/IP ADDRESS              \$(myip)
  175.      SET TCP/IP SUBNETMASK           \$(netmask)
  176.      SET TCP/IP DOMAIN               footech.edu
  177.      SET TCP/IP GATEWAY              \$(remip)  ; remote IP
  178.      SET TCP/IP PRIMARY-NAMESERVER   <primary nameserver IP>
  179.      SET TCP/IP SECONDARY-NAMESERVER <secondary nameserver IP>
  180.        ; The nameservers are static IPs that your ISP should give you. PPPD
  181.        ; Doesn't export them to IP-UP.BAT, that's why there's no point in
  182.        ; specifying them in step 3 above.
  183.      ; If you want to be very cool, in 3.15 you can even compute MSS as
  184.      ; \feval(\$(peermru)-40)
  185.      SET TCP/IP HOST                 library
  186.        ; This will connect you to library.footech.edu. If you prefer, you can
  187.        ; put the full name here, and not specify DOMAIN. Or you can even put
  188.        ; the host IP here, then you don't need nameservers.
  189.      SET PORT TCP/IP
  190.      CONNECT